package com.lkd.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lkd.entity.TaskEntity;
import com.lkd.entity.UserCountEntity;
import com.lkd.vo.UserWorkVO;
import org.apache.ibatis.annotations.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface TaskDao2 {

    Integer countTaskStatusByDate(@Param("start") LocalDateTime start,@Param("end") LocalDateTime end,
                               @Param("taskStatus")Integer taskStatus,@Param("taskType") int taskType);

    Page<UserWorkVO> getUserWorkTop10(Page<UserWorkVO> page,@Param("start")LocalDate start,@Param("end") LocalDate plusDays,
                                      @Param("taskType")Integer taskType, @Param("regionId")Long regionId);
}
